/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
$(document).ready(function(){
   
   $('#user-detail').submit(function() {
    $.post("ajax/update.jsp", $(this).serialize(), function(data){
       console.log(data);
    });
    return false;
  });
  
  $('#user-delete-btn').click(function(){
    var id = $('#user-detail #id').val();
    $.post("ajax/delete.jsp", {
      id:id
    }, function(data){
       console.log(data);
    });
  });
});

